<form [formGroup]="form">
  <nz-form-item *ngFor="let field of fieldBase">
    <nz-form-label [nzSm]="6" [nzXs]="24">
      {{field.name}}
    </nz-form-label>
    <nz-form-control ngSwitch="{{field.type}}" [nzSm]="14" [nzXs]="24"
                     nzErrorTip="{{form.controls[field.id]?.errors?.message}}">
      <input nz-input *ngSwitchCase="'text'" [formControlName]="field.id">
    </nz-form-control>
  </nz-form-item>
</form>
